package com.baizhi.shane.shane.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 闻柏智
 * @date 2024/01/27 14:49:48
 */
@Data
@ApiModel("获取单个回答VO")
public class GetOneAnswerOutVO {
    @ApiModelProperty(value = "回答ID")
    private Long answerId;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "用户昵称")
    private String userNickname;
    @ApiModelProperty(value = "用户头像URL")
    private String userImageUrl;
    @ApiModelProperty(value = "回答显示文本")
    private String answerDisplayText;
    @ApiModelProperty("回答文本")
    private String content;
    @ApiModelProperty("纯文本")
    private String plainText;
    @ApiModelProperty(value = "回答创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty("回答状态，0草稿，1已发布")
    private Integer status;
    @ApiModelProperty(value = "点赞数量")
    private Long likeCount;
    @ApiModelProperty(value = "当前用户是否已点赞")
    private Long nowUserLiked;
    @ApiModelProperty(value = "当前用户点赞的记录表ID")
    private Long nowUserLikedRelId;
    @ApiModelProperty(value = "收藏数量")
    private Long collectCount;
    @ApiModelProperty(value = "当前用户是否已收藏")
    private Long nowUserCollected;
    @ApiModelProperty(value = "当前用户收藏的记录表ID")
    private Long nowUserCollectedRelId;
    @ApiModelProperty(value = "评论数量")
    private Long commentCount;
    @ApiModelProperty(value = "当前用户是否已评论")
    private Long nowUserCommented;
    @ApiModelProperty(value = "是否显示评论树(供前端使用，默认为0不显示)")
    private Long showComment;
}
